html,
body,
#app {
    width: 100vw;
    height: 100vh;
    margin: 0px;
}

.b-loading {
    position: absolute;

    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    &.fullscreen {
        z-index: 9999;
        top: 0px;
        left: 0px;
        background-color: var(--layout-container-bgc);

        .boxs {
            scale: 1.4;
        }
    }
}

@keyframes text-ani {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    50% {
        clip-path: inset(0);
    }

    100% {
        clip-path: inset(0 0 0 100%);
    }
}

.text {
    position: absolute;
    z-index: 999;
    left: 50%;
    bottom: 30%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: lowercase;
    font-weight: 500;
    font-size: 30px;
    letter-spacing: 0.2px;
}

.text::before,
.text::after {
    content: attr(data-text);
}

.text::before {
    color: var(--el-color-primary, rgba(85,144,242,.14));
    // color: #409eff;
}

.text::after {
    // color: var(--el-text-color-disabled, '#c0c4cc');
    color: #c0c4cc;
    animation: text-ani 3.6s ease infinite;
    position: absolute;
    left: 0;
}

.boxs {
    --size: 32px;
    --duration: 800ms;
    height: calc(var(--size) * 2);
    width: calc(var(--size) * 3);
    position: relative;
    inset: 0;
    top: 40%;
    margin: auto;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    margin-top: calc(var(--size) * 1.5 * -1);
    transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
    transition: scale 0.3s;
}

.boxs .box {
    width: var(--size);
    height: var(--size);
    top: 0;
    left: 0;
    position: absolute;
    transform-style: preserve-3d;
}

.boxs .box:nth-child(1) {
    transform: translate(100%, 0);
    -webkit-animation: box1 var(--duration) linear infinite;
    animation: box1 var(--duration) linear infinite;
}

.boxs .box:nth-child(2) {
    transform: translate(0, 100%);
    -webkit-animation: box2 var(--duration) linear infinite;
    animation: box2 var(--duration) linear infinite;
}

.boxs .box:nth-child(3) {
    transform: translate(100%, 100%);
    -webkit-animation: box3 var(--duration) linear infinite;
    animation: box3 var(--duration) linear infinite;
}

.boxs .box:nth-child(4) {
    transform: translate(200%, 0);
    -webkit-animation: box4 var(--duration) linear infinite;
    animation: box4 var(--duration) linear infinite;
}

.boxs .box>div {
    // --background: var(--el-color-primary-light-3, #5c8df6);
    --background: var(--el-color-primary-light-3, rgba(85,144,242,.14));
    // --background: #5c8df6;
    --top: auto;
    --right: auto;
    --bottom: auto;
    --left: auto;
    --translateZ: calc(var(--size) / 2);
    --rotateY: 0deg;
    --rotateX: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    top: var(--top);
    right: var(--right);
    bottom: var(--bottom);
    left: var(--left);
    transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxs .box>div:nth-child(1) {
    --top: 0;
    --left: 0;
}

.boxs .box>div:nth-child(2) {
    // --background: #145af2;
    --background: var(--el-color-primary-dark-2, #145af2);
    ;
    --right: 0;
    --rotateY: 90deg;
}

.boxs .box>div:nth-child(3) {
    // --background: #447cf5;
    --background: var(--el-color-primary, #447cf5);
    --rotateX: -90deg;
}

.boxs .box>div:nth-child(4) {
    // --background: #dbe3f4;
    --background: var(--el-color-primary-light-9, rgba(85,144,242,.14););
    --top: 0;
    --left: 0;
    --translateZ: calc(var(--size) * 3 * -1);
}

@-webkit-keyframes box1 {

    0%,
    50% {
        transform: translate(100%, 0);
    }

    100% {
        transform: translate(200%, 0);
    }
}

@keyframes box1 {

    0%,
    50% {
        transform: translate(100%, 0);
    }

    100% {
        transform: translate(200%, 0);
    }
}

@-webkit-keyframes box2 {
    0% {
        transform: translate(0, 100%);
    }

    50% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100%, 0);
    }
}

@keyframes box2 {
    0% {
        transform: translate(0, 100%);
    }

    50% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100%, 0);
    }
}

@-webkit-keyframes box3 {

    0%,
    50% {
        transform: translate(100%, 100%);
    }

    100% {
        transform: translate(0, 100%);
    }
}

@keyframes box3 {

    0%,
    50% {
        transform: translate(100%, 100%);
    }

    100% {
        transform: translate(0, 100%);
    }
}

@-webkit-keyframes box4 {
    0% {
        transform: translate(200%, 0);
    }

    50% {
        transform: translate(200%, 100%);
    }

    100% {
        transform: translate(100%, 100%);
    }
}

@keyframes box4 {
    0% {
        transform: translate(200%, 0);
    }

    50% {
        transform: translate(200%, 100%);
    }

    100% {
        transform: translate(100%, 100%);
    }
}